import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      name: 'layout',
      component: () =>
        import("@/pages/layout"),
      children: [
        // 信息发布 
        {
          path: "",
          name: "we",
          component: () =>
            import("@/pages/welcome"),
        },
        {
          path: "swipperimg",
          name: "swipperimg",
          component: () =>
            import("@/pages/changeCard/swipperimg"),
        },
        {
          path: "orderManagement",
          name: "orderManagement",
          component: () =>
            import("@/pages/changeCard/orderManagement"),
        },
        //公共信息模块
        {
          path: "complaintHandlingCenter",
          name: "complaintHandlingCenter",
          component: () =>
            import("@/pages/changeCard/complaintHandlingCenter"),
        },

        //用户信息处理
        {
          path: "user",
          name: "user",
          component: () =>
            import("@/pages/changeCard/user"),
        },

        //用户隐私协议 
        {
          path: "privacyAgreement",
          name: "privacyAgreement",
          component: () =>
            import("@/pages/changeCard/privacyAgreement"),
        },
        
        //车辆类型 
        {
          path: '/carTypeList',
          name: 'carTypeList',
          component: () => import("@/pages/car/typeList"),
        },
        
        //车辆规格
        {
          path: '/carSpecificationsList',
          name: 'carSpecificationsList',
          component: () => import("@/pages/car/specificationsList"),
        },
        
        //车辆认证
        {
          path: '/carVerifyList',
          name: 'carVerifyList',
          component: () => import("@/pages/car/verifyList"),
        },
        
        //滚动条
        {
          path: '/noticeList',
          name: 'noticeList',
          component: () => import("@/pages/notice/noticeList"),
        },
        
        //站点
        {
          path: '/siteList',
          name: 'siteList',
          component: () => import("@/pages/site/siteList"),
        }
      ]
    },
    {
      path: '/login',
      name: 'login',
      component: () =>
        import("@/pages/login/login"),
    }
  ]
})
